package com.pudu.mydemo.remote;

import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

/**
 * Created by guiliu on 2016/8/29.
 */
public class RobotApi {

    public static void post(String a, String b, AsyncHttpResponseHandler handler) {
        RequestParams params = new RequestParams();
        params.put("key", "value");
        params.put("more", "data");
        String url = "http://www.google.com";
        ApiHttpClient.post(url, params, handler);
    }

    public static void checkUpdate(AsyncHttpResponseHandler handler) {
        ApiHttpClient.get("http://pudutech.com/update/update", handler);
    }

}
